<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "mkt_friend_log".
 *
 * @property string $id
 * @property string $user_id
 * @property string $friend_id
 * @property integer $is_read
 * @property integer $is_done
 * @property string $create_time
 * @property string $update_time
 */
class MktFriendLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'mkt_friend_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'friend_id', 'is_read', 'is_done'], 'integer'],
            [['create_time', 'update_time'], 'safe']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => '我',
            'friend_id' => '我想是Ta的好友',
            'is_read' => '已被阅',
            'is_done' => '是否已处理, 忽略或者接收',
            'create_time' => '申请时间',
            'update_time' => '处理时间',
        ];
    }

    /**
     * @inheritdoc
     * @return MktFriendLogQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new MktFriendLogQuery(get_called_class());
    }
}
